<!DOCTYPE html>
<html>
<head>
     <meta charset="utf-8">
      <title>修改用户信息</title>
      <link rel="stylesheet"  href="./assets/css/bootstrap.min.css">
       <style type="text/css">body
  { 
    background-image:url('./poster/1.jpg');
    background-repeat:no-repeat;
    background-position:20% 20%;
  }
form{border-style:solid; border-left-style: none;width:65%;height:70%;padding-top:20px;color:grey;border-width: 1px;padding-left:20px;}
  </style>
</head>
<?php
$row=$data['user'];//一条记录
?>
<body>

  
   <form class="form-horizontal" method="post"  action="admin.php?c=user&m=updateuser" enctype="multipart/form-data">
  <div class="form-group">
    <input type="hidden" name="uid"  value="<?php echo $row['uid'];?>">
    </div>
      <div class="form-group">
      <label for="inputEmail1" class="col-md-2 control-label"> 姓名</label>
        <div class="col-md-4">
        <input type="text" class="form-control" id="inputEmail1" name="username" value="<?php echo $row['uname'];?>">
        </div>
        </div>


      <div class="form-group">
      <label for="inputEM" class="col-md-2  control-label">性别</label>
         <div class="col-md-4">
         <label class="radio-inline">
         <input type="radio" name="gender" id="inputEM value="0" <?php if ($row['gender']==0){echo "checked";}?>>男
         </label>
         <label class="radio-inline">
         <input type="radio" name="gender" id="in" value="1" <?php if($row['gender'
         ]==1){echo "checked";}?>>女</label>
         </div>
         </div>
  
       <div class="form-group">
       <label for="data" class="col-md-2 control-label">生日</label>
       <div class="col-md-4">
       <input type="date" class="form-control" id="data" placeholder="生日" name="birthdate" value="<?php $row['birthdate'];?>">
       </div>
       </div>

        <div class="form-group">
        <label for="input2" class="col-md-2 control-label">爱好</label>
        <div class="col-md-4">
        <label class="checkbox-inline">
        <input type="checkbox" name="hobby[]" value="旅游" <?php if(strstr($row['hobby'],'旅游')) echo'checked';?>>旅游
        </label>
        <label class="checkbox-inline">
     <input type="checkbox"
          name="hobby[]" value="登山"<?php  if(strstr($row['hobby'],'登山')) echo 'checked';  ?>>登山
          </label>
           <label class="checkbox-inline">
          <input type="checkbox"
          name="hobby[]" value="上网"<?php  if(strstr($row['hobby'],'上网')) echo 'checked';  ?>>上网
          </label>
           <label class="checkbox-inline">
          <input type="checkbox"
          name="hobby[]" value="游泳"<?php  if(strstr($row['hobby'],'游泳')) echo 'checked';  ?>>游泳
          </label>

  </div>
  </div>

  <div class="form-group">
  <label for="inputDate3" class="col-md-2 control-label">学历</label>
   <div class="col-md-4">
        <select class="form-control" name="degree" id="">
         <option value="1"<?php  if($row['degree']=='1') echo 'selected';  ?>>高中</option>
         <option value="2"<?php  if($row['degree']=='2') echo 'selected';  ?>>大学</option>
         <option value="3"<?php  if($row['degree']=='3') echo 'selected';  ?>>硕士</option>
         <option value="4"<?php  if($row['degree']=='4') echo 'selected';  ?>>博士</option>
     </select>

      </div>
      </div>

<div class="form-group">
    <label for="inputText3" class="col-md-2 control-label">自我介绍</label>
    <div class="col-md-4">
    <textarea class="form-control" rows="3" id="inputText3" name="intro"><?php echo $row['intro'];?></textarea>
    </div>
  </div>

        <div class="form-goup">
        <label for="1" class="col-md-2 control-label">头像</label>
         <div class="col-md-4">
        <input type="file" name="pic"></div>
        </div>
      
    
 原头像:<img src="./photos/<?php echo $row['pic'];?>"width="80" height="80"  alt="" class="img-circle">
   
   <div class="form-group">
<div class="col-md-offset-2 col-md-4">
 <input type="submit" value="修改">
        </div>
 </div>
   </form>
</body>
</html>